import {FieldReceptionNoteIndex, FormDataFieldReceptionNoteCreate} from "~/requests/index";
import {Modal} from 'ant-design-vue';


export const searchReceptionNote = async (phone) => {
  return await FieldReceptionNoteIndex({
    "CustName": "",
    "Phone": phone,
    "CustCardNo": "",
    "CustIdentityId": "",
    "isSearch": "Y",
    "pageCurrent": "1",
    "pageSize": "",
    "orderField": "",
    "orderDirection": "",
    "total": "",
  });
}

export const getReceptionNoteFormData = async (phone) => {
  return await FormDataFieldReceptionNoteCreate({
    "Phone": phone
  })
}

export const showModal = (content , title = '提交结果') => {
  Modal.confirm({
    title: title,
    content: content,
    okText: '确认',
    cancelText: '取消',
  });
}
